﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DbGenerator.Model.units.column
{
    public class TAutoIncrementInfo
    {
        #region ctors
        public TAutoIncrementInfo(int offset, int seed)
        {
            _Offset = offset;
            _Seed = seed;
        }
        public TAutoIncrementInfo()
        {
            _Offset = 1;
            _Seed = 1;
        }
        #endregion

        #region overriden methods
        public override string ToString()
        {
            return String.Format("IDENTITY({0},{1})"
                , _Offset, _Seed);
        }
        #endregion

        #region properties
        private int _Offset;
        public int Offset
        {
            get { return _Offset; }
            //set { _Offset = value; }
        }

        private int _Seed;
        public int Seed
        {
            get { return _Seed; }
            //set { _Seed = value; }
        }
        #endregion
    }
}
